<template>
  <div class="dashboard-container">
    <div class="dashboard-text" >
      <h3>欢迎来到餐厅后台管理系统</h3>
    </div>
    <el-carousel :interval="2000" type="card" height="400px">
      <el-carousel-item v-for="item in carousel" :key="item">
        <img :src="item" alt="" style="width: 100%; height: 100%; border-radius: 10px">
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script>

export default {
  name: 'Dashboard',
  data(){
    return{
      carousel: [
        require('@/assets/imgs/img1.png'),
        require('@/assets/imgs/img2.png'),
        require('@/assets/imgs/img3.png'),
        require('@/assets/imgs/img4.png'),
        require('@/assets/imgs/img5.png'),
      ],
    }
  }

}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 150px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n+1) {
  background-color: #d3dce6;
}

</style>
